ShellScriptTempl directive

Controls the composition of the script invocation line within the shell startup jacket procedure.

Purpose

The ShellScriptTempl directive Specifies a special formatting string that controls the composition of the script invocation within the startup jacket procedure.

You can use this to tailor the command line used to invoke the script itself. Note the special character sequences listed below, which are used as substitution signals (analogous to printf() formats).


Syntax

ShellScriptTempl format-string

format-string is a template for the script invocation. It can consist of anything that is legal in a shell command, plus the following special sequences for which substitutions are made as described:

~p
The DOS format full path to the script as specified in the URL from the client.
~a
The "query args" (if any) that were present on the URL from the client.
Only one ShellScriptTempl directive is allowed in the configuration file.


Default

If you do not specify a ShellScriptTempl, httpd assumes:

ShellScriptTempl ~p ~a

Examples

ShellScriptTempl $args = "~a"; do "c:/httpd/cgi-bin/pprocs/~p"
might be used to run a perl script after defining the environments in perl via use of the ShellEnvFmt directive.
ShellScriptTempl ARGS="~a";CHAIN "~p"

For a hypothetical BASIC interpreter. The args string is assigned to a (hopefully) global variable, then a CHAIN is performed to start the script (BASIC program) itself.

Return to Wizard Scripting Overview


Robert B. Denny <rdenny@netcom.com>